package com.tczs.server;

import com.tczs.server.action.DefaultServerExecute;
import com.tczs.server.action.ServerExecute;
import com.tczs.server.request.AbstractGetMethodBuildParameter;
import com.tczs.server.request.DefaultGetMethodBuildParameter;
import com.tczs.server.request.DefaultServerBuildRequest;
import com.tczs.server.request.ServerBuildRequest;

public class Config {
    //get请求方法默认的构建参数类
    private static AbstractGetMethodBuildParameter getMethodBuildParameter = new DefaultGetMethodBuildParameter();
    private static ServerBuildRequest serverBuildRequest = new DefaultServerBuildRequest();
    public static ServerExecute serverExecute = new DefaultServerExecute();

    public static ServerBuildRequest getServerBuildRequest() {
        return serverBuildRequest;
    }
    public static void setServerBuildRequest(ServerBuildRequest serverBuildRequest) {
        Config.serverBuildRequest = serverBuildRequest;
    }

    public static AbstractGetMethodBuildParameter getGetMethodBuildParameter() {
        return getMethodBuildParameter;
    }

    public static void setGetMethodBuildParameter(AbstractGetMethodBuildParameter getMethodBuildParameter) {
        Config.getMethodBuildParameter = getMethodBuildParameter;
    }

    public static ServerExecute getServerExecute() {
        return serverExecute;
    }

    public static void setServerExecute(ServerExecute serverExecute) {
        Config.serverExecute = serverExecute;
    }
}
